<?php
namespace app\api\validate;
use think\Validate;

class Index extends Validate
{
    protected $rule = [
        'method'        =>  'require|in:tool,cat',
    ];

    protected $message = [
        'method.require'    => '方法参数不能为空!',
        'method.in'         => '方法参数错误!',
    ];

    protected $scene = [
        'list'         =>  ['method'],
    ];    
}